package com.zr.task.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zr.common.annotation.Excel;
import com.zr.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 任务日志对象 eim_task_log
 * 
 * @author zhaojie
 * @date 2022-10-21
 */
public class EimTaskLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务日志ID */
    private Long id;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Long taskId;

    /** 任务类型 */
    @Excel(name = "任务类型")
    private String taskType;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private String taskStatus;

    /** 任务负责人 */
    @Excel(name = "任务负责人")
    private String taskUserId;

    /** 任务创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 任务动作：1：分配了；2：完成了 */
    @Excel(name = "任务动作：1：分配了；2：完成了")
    private String taskPerform;

    /** 任务下一承接人 */
    @Excel(name = "任务下一承接人")
    private Long nextUserId;

    /** 任务描述 */
    @Excel(name = "任务描述")
    private String taskDescription;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setTaskType(String taskType) 
    {
        this.taskType = taskType;
    }

    public String getTaskType() 
    {
        return taskType;
    }
    public void setTaskStatus(String taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() 
    {
        return taskStatus;
    }
    public void setTaskUserId(String taskUserId) 
    {
        this.taskUserId = taskUserId;
    }

    public String getTaskUserId() 
    {
        return taskUserId;
    }
    public void setTaskPerform(String taskPerform) 
    {
        this.taskPerform = taskPerform;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getTaskPerform()
    {
        return taskPerform;
    }
    public void setNextUserId(Long nextUserId) 
    {
        this.nextUserId = nextUserId;
    }

    public Long getNextUserId() 
    {
        return nextUserId;
    }
    public void setTaskDescription(String taskDescription) 
    {
        this.taskDescription = taskDescription;
    }

    public String getTaskDescription() 
    {
        return taskDescription;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("taskType", getTaskType())
            .append("taskStatus", getTaskStatus())
            .append("taskUserId", getTaskUserId())
            .append("createTime", getCreateTime())
            .append("taskPerform", getTaskPerform())
            .append("nextUserId", getNextUserId())
            .append("taskDescription", getTaskDescription())
            .toString();
    }
}
